home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: dd.chalmers.se!news.chalmers.se!sunic!pipex!howland.reston.ans.net!europa.eng.gtefsd.com!emory!news-feed-2.peachnet.edu!concert!sas!mozart.unx.sas.com!jamie
- From: jamie@cdevil.unx.sas.com (James Cooper)
- Subject: Re: SAS Keywords (__saveds etc)
- Originator: jamie@cdevil.unx.sas.com
- Sender: news@unx.sas.com (Noter of Newsworthy Events)
- Message-ID: <CKI1BK.FMH@unx.sas.com>
- Date: Mon, 31 Jan 1994 14:52:30 GMT
- References: <inf01.759746947@apollo23> <CKCG1B.Lzq@unx.sas.com> <2iiptt$soe@ugle.unit.no>
- Nntp-Posting-Host: cdevil.unx.sas.com
- Organization: SAS Institute Inc.
- Lines: 30
-
-
- In article <2iiptt$soe@ugle.unit.no>, shansen@idt.unit.no (Staale L. Hansen) writes:
- >In article <CKCG1B.Lzq@unx.sas.com>, jamie@cdevil.unx.sas.com (James Cooper) writes:
- >[...]
- >|> int __asm foo(register __a3 char *bar);
- >|>
- >|> This says that function "foo" will receive its only parameter in register
- >|> A3, rather than the default for pointers of A0.
- >
- >But how do you specify which register the return value will be in? As
- >far as I can see there is NO way to do this, you get register D0
- >whether you like it or not.
-
- Well, if you have SAS/C V6.50+, you could use the '#pragma amicall'
- directive we added for MANX support. It allows specifying a different
- return register than D0 (though D0 is still the default).
-
- I've never needed this, but I'm sure someone could come up with a case
- where it would be handy... I probably could as well, if I thought about
- it a while... :-)
-
- --
- ---------------
- Jim Cooper
- (jamie@unx.sas.com) bix: jcooper
-
- Any opinions expressed herein are mine (Mine, all mine! Ha, ha, ha!),
- and not necessarily those of my employer.
-
- Remember, "Euphemisms are for the differently brained."
-